package com.jzo2o.foundations.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.response.ServeAggregationSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeAggregationTypeSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeCategoryResDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-07-03
 */
public interface ServeMapper extends BaseMapper<Serve> {
    /**
     * 分页查询区域服务详情
     * @param page
     * @param regionId
     * @return
     */
    List<ServeResDTO> pageServeByRegionId(Page<ServeResDTO> page, Long regionId);

    /**
     * 根据区域id查询所有服务分类以及服务内容
     * @param regionId
     * @return
     */
    List<ServeCategoryResDTO> getServeCategoryList(String regionId);

    List<ServeAggregationSimpleResDTO> getHotServeList(String regionId);

    /**
     *   全部服务列表
     * @param regionId
     * @return
     */
    List<ServeAggregationTypeSimpleResDTO> queryServeTypeByRegionId(Long regionId);

    /**
     *   查询服务详情
     * @param id
     * @return
     */
    ServeAggregationSimpleResDTO getServeDetailById(Long id);
}
